.class Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;
.super Ljava/lang/Object;
.source "CommunityAppBaseFragment.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->initActions(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    .prologue
    .line 174
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/widget/AbsListView;III)V
    .registers 11
    .param p1, "view"    # Landroid/widget/AbsListView;
    .param p2, "firstVisibleItem"    # I
    .param p3, "visibleItemCount"    # I
    .param p4, "totalItemCount"    # I

    .prologue
    const/16 v5, 0x8

    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 204
    add-int v0, p2, p3

    .line 205
    .local v0, "lastVisibleItem":I
    iget-object v4, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    add-int/lit8 v1, p4, -0x2

    if-le v0, v1, :cond_41

    move v1, v2

    :goto_d
    # setter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mIsScrollToEnd:Z
    invoke-static {v4, v1}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$702(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;Z)Z

    .line 207
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;
    invoke-static {v1}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$600(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Landroid/widget/AbsListView$OnScrollListener;

    move-result-object v1

    if-eqz v1, :cond_21

    .line 208
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;
    invoke-static {v1}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$600(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Landroid/widget/AbsListView$OnScrollListener;

    move-result-object v1

    invoke-interface {v1, p1, p2, p3, p4}, Landroid/widget/AbsListView$OnScrollListener;->onScroll(Landroid/widget/AbsListView;III)V

    .line 211
    :cond_21
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->getShadowHeaderView()Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_40

    .line 212
    if-nez p2, :cond_43

    .line 213
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->getShadowHeaderView()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v1

    if-eq v1, v5, :cond_40

    .line 214
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->getShadowHeaderView()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v5}, Landroid/view/View;->setVisibility(I)V

    .line 222
    :cond_40
    :goto_40
    return-void

    :cond_41
    move v1, v3

    .line 205
    goto :goto_d

    .line 216
    :cond_43
    if-lt p2, v2, :cond_40

    const/4 v1, 0x3

    if-gt p2, v1, :cond_40

    .line 217
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->getShadowHeaderView()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

    move-result v1

    if-eqz v1, :cond_40

    .line 218
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->getShadowHeaderView()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_40
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .registers 5
    .param p1, "view"    # Landroid/widget/AbsListView;
    .param p2, "scrollState"    # I

    .prologue
    .line 178
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$600(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Landroid/widget/AbsListView$OnScrollListener;

    move-result-object v0

    if-eqz v0, :cond_11

    .line 179
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mOnScrollListener:Landroid/widget/AbsListView$OnScrollListener;
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$600(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Landroid/widget/AbsListView$OnScrollListener;

    move-result-object v0

    invoke-interface {v0, p1, p2}, Landroid/widget/AbsListView$OnScrollListener;->onScrollStateChanged(Landroid/widget/AbsListView;I)V

    .line 182
    :cond_11
    if-nez p2, :cond_55

    .line 183
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAdapter:Landroid/widget/BaseAdapter;

    instance-of v0, v0, Lcom/brixd/niceapp/community/adapter/CommunityFavAppAdapter;

    if-eqz v0, :cond_24

    .line 184
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAdapter:Landroid/widget/BaseAdapter;

    check-cast v0, Lcom/brixd/niceapp/community/adapter/CommunityFavAppAdapter;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/adapter/CommunityFavAppAdapter;->resume()V

    .line 192
    :cond_24
    :goto_24
    if-nez p2, :cond_54

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mIsScrollToEnd:Z
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$700(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Z

    move-result v0

    if-eqz v0, :cond_54

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mHasMoreData:Z
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$400(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Z

    move-result v0

    if-eqz v0, :cond_54

    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mIsRequesting:Z
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$200(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Z

    move-result v0

    if-nez v0, :cond_54

    .line 193
    const-class v1, Lcom/brixd/niceapp/community/CommunityAppListFragment;

    monitor-enter v1

    .line 194
    :try_start_41
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # getter for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mIsRequesting:Z
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$200(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)Z

    move-result v0

    if-nez v0, :cond_53

    .line 195
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # operator++ for: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mCurPage:I
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$008(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)I

    .line 196
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    # invokes: Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->fetchData()V
    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->access$300(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)V

    .line 198
    :cond_53
    monitor-exit v1
    :try_end_54
    .catchall {:try_start_41 .. :try_end_54} :catchall_67

    .line 200
    :cond_54
    return-void

    .line 187
    :cond_55
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAdapter:Landroid/widget/BaseAdapter;

    instance-of v0, v0, Lcom/brixd/niceapp/community/adapter/CommunityFavAppAdapter;

    if-eqz v0, :cond_24

    .line 188
    iget-object v0, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$4;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v0, v0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAdapter:Landroid/widget/BaseAdapter;

    check-cast v0, Lcom/brixd/niceapp/community/adapter/CommunityFavAppAdapter;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/adapter/CommunityFavAppAdapter;->pause()V

    goto :goto_24

    .line 198
    :catchall_67
    move-exception v0

    :try_start_68
    monitor-exit v1
    :try_end_69
    .catchall {:try_start_68 .. :try_end_69} :catchall_67

    throw v0
.end method
